package net.hn.hnms.biz.support.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.hn.hnms.biz.support.domain.SupportHisPo;
import net.hn.hnms.biz.support.domain.dto.ResistanceCurveDto;
import net.hn.hnms.biz.support.domain.dto.SupportCloudDto;
import net.hn.hnms.biz.support.domain.dto.SupportHisDto;
import net.hn.hnms.biz.support.domain.vo.ChartAnaliseVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface HolderHisMapper extends BaseMapper<SupportHisPo> {

    /**
     * 最大工作阻力变化曲线
     * @param resistanceCurveDto
     * @return
     */
    List<SupportHisDto> holderResistanceCurve(@Param("resistanceCurveDto") ResistanceCurveDto resistanceCurveDto);
    /**
     * 支架当天最大压力或距离云图
     * @param supportCloudDto
     * @return
     */
    List<SupportHisDto> holdernNephogram(@Param("supportCloudDto") SupportCloudDto supportCloudDto);
    List<SupportHisDto> holdernNephogram1(@Param("supportCloudDto") SupportCloudDto supportCloudDto);

    @Select(value = "select * from dwd_zdsb_his_support where data_time >= CURRENT_DATE and point_code like '%支架压力%' and point_value >46")
    List<SupportHisPo> todayAlarm();

    List<ChartAnaliseVo> getHolderAnalysis(@Param("mineCode") String mineCode, @Param("startTime")String startTime, @Param("endTime")String endTime);
}
